package com.zhongkun.datahome.service.req.cmd.appointment;

import com.zhongkun.datahome.framework.redis.RedisLockKey;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class AppointmentJoinCmd implements RedisLockKey {
    @ApiModelProperty("预约id")
    private Long appointmentId;

    @ApiModelProperty("时间段id")
    private Long timeSlotId;

    @ApiModelProperty("客户房产id")
    private Long customerHouseId;

    @ApiModelProperty("参访人数")
    private Integer visitNum;

    @ApiModelProperty("原预约记录id")
    private Long originRecordId;

    @Override
    public String getLockKey() {
        return String.valueOf(this.getTimeSlotId());
    }
}